package cn.edu.usst.cs.stu_sys011;

import org.jetbrains.annotations.*;

public record StuInfo(@NotNull String name, long stu_id, @NotNull String major,@NotNull Grade grade) {
    static float weight = 0.5f;
    public final static String
            STU_ID = "stu_id",
            NAME = "stu_name",
            MAJOR = "major",
            MARK_ROUTINE="mark_routine",
            MARK_FINAL="mark_final",
            MARK_TOTAL="mark_total";
    public StuInfo{


    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (!(obj instanceof StuInfo)) return false;
        if (obj == this) return true;
        return ((StuInfo) obj).stu_id == this.stu_id;
    }

}

